<template>
  <div>
    <bao-dog
      v-for="(item, index) in arr"
      :key="index"
      :dogImgUrl="item.dogImgUrl"
      :dogName="item.dogName"
    />
  </div>
</template>

<script>
import BaoDog from "./components/BaoDog.vue";
export default {
  data() {
    return {
      arr: [
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "博美",
        },
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "泰迪",
        },
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "金毛",
        },
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "哈士奇",
        },
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "阿拉斯加",
        },
        {
          dogImgUrl:
            "https://img1.baidu.com/it/u=3009731526,373851691&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500",
          dogName: "萨摩耶",
        },
      ],
    };
  },
  components: {
    BaoDog,
  },
};
</script>

<style>
</style>